﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.DataVisualization.Charting;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Prototypes
{
    /// <summary>
    /// Interaction logic for StatisticalReportsContent.xaml
    /// </summary>
    public partial class StatisticalReportsContent : UserControl
    {
        public StatisticalReportsContent()
        {
            InitializeComponent();
            ((BarSeries)mcChart.Series[0]).ItemsSource = new KeyValuePair<string, int>[]
                                         {
                                             new KeyValuePair<string, int>("Juez Inst. Flia.  ", 12),
                                             new KeyValuePair<string, int>("Ministerio Público  ", 25),
                                             new KeyValuePair<string, int>("FELCC  ", 5),
                                             new KeyValuePair<string, int>("Defensorias  ", 6),
                                             new KeyValuePair<string, int>("Otros  ", 10)
                                         };
            ((PieSeries)FactTypesChart.Series[0]).ItemsSource = new KeyValuePair<string, int>[]
                                         {
                                             new KeyValuePair<string, int>("Físicas  ", 200),
                                             new KeyValuePair<string, int>("Psicológicas  ", 321),
                                             new KeyValuePair<string, int>("Sexuales  ", 120),
                                             new KeyValuePair<string, int>("Otros  ", 78)
                                         };
        }
    }
}
